package com.share.feign;

import com.share.domain.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @desc: 调用失败回调接口
 * @author:caifan
 * @date:2020/6/26
 */
@Component
@Slf4j
public class UserFeignFallback implements UserFeignClient{
    @Override
    public User getUserById(Long id) {
        log.info("userfeign fallback");
        return null;
    }
}
